package com.and.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.compass.annotations.Searchable;

/**
 * 客户建议
 * @author Administrator
 *
 */
@Entity
@Searchable(root = false)
public class Suggestion  implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4352098820179496858L;
	private Integer id;
	private String suggest;
	private ParticipleCategory participleCategory;
	private Participle participle;
	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(length = 1000, nullable = false)
	public String getSuggest() {
		return suggest;
	}
	public void setSuggest(String suggest) {
		this.suggest = suggest;
	}
	
	@ManyToOne(cascade = { CascadeType.REMOVE, CascadeType.REFRESH })
	@JoinColumn(name = "participleCategory")
	public ParticipleCategory getParticipleCategory() {
		return participleCategory;
	}
	public void setParticipleCategory(ParticipleCategory participleCategory) {
		this.participleCategory = participleCategory;
	}
	@ManyToOne(cascade = { CascadeType.REMOVE, CascadeType.REFRESH })
	@JoinColumn(name = "participle")
	public Participle getParticiple() {
		return participle;
	}
	public void setParticiple(Participle participle) {
		this.participle = participle;
	}
	
	
	

}
